﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace GosWeb.Models.Db
{
    public class GeneRatio
    {
        //[ForeignKey("BiontID")]
        [Key]
        public Int64 GrID { get; set; }

        [Display(Name = "耳号")]
        public string AnID { get; set; }

        [Display(Name = "血统")]
        [Required(ErrorMessage = "必填", AllowEmptyStrings = false)]
        public string GeneCode { get; set; }

        /// <summary>
        /// percent
        /// </summary>
        [Display(Name = "占比 %")]
        public decimal Ratio { get; set; }


        public GeneRatio()
        {
            Ratio = 100;
        }

        public virtual Biont Biont { get; set; }

    }
}